//
//  MaxResponseButton.m
//  Cunli
//
//  Created by lilubin on 15/7/22.
//  Copyright (c) 2015年 lilubin. All rights reserved.
//

#import "MaxResponseButton.h"

@implementation MaxResponseButton

- (BOOL)pointInside:(CGPoint)point withEvent:(UIEvent *)event
{
    CGRect bounds = self.bounds;
    CGFloat widthDelta = MAX(44.0-bounds.size.width, 0);
    CGFloat heightDelta = MAX(44.0-bounds.size.height, 0);
    bounds = CGRectInset(bounds, -0.5 * widthDelta, -0.5 * heightDelta);
    return CGRectContainsPoint(bounds, point);
}

@end
